﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InformationExtraction.Common
{
    class Token
    {
        /// <summary>
        /// Token文本内容
        /// </summary>
        public string Content
        {
            get;
            set;
        }

        /// <summary>
        /// 信息类型 (Name, CRDate etc.)
        /// </summary>
        public InformationType Type
        {
            get;
            set;
        }

        /// <summary>
        /// 获得下一个Token,当位于文件末尾时返回null
        /// </summary>
        public Token Next
        {
            get;
            set;
        }

        /// <summary>
        /// 获取前一个Token，当位于文件起始位置时返回null
        /// </summary>
        public Token Prior
        {
            get;
            set;
        }

        /// <summary>
        /// 所在行信息
        /// </summary>
        public Line InLine
        {
            get;
            set;
        }

        /*
        public Sentence InSentence
        {
            get;
            set;
        }
         */

        public override string ToString()
        {
            return Content;
        }
    }
}
